package com.wyclabs.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wyclabs.commons.request.UserCreateRequest;
import com.wyclabs.commons.request.UserUpdateRequest;
import com.wyclabs.commons.response.UserResponse;
import com.wyclabs.user.model.User;

/**
 * 用户
 * @author rs
 * @date 2019/10/10 21:28
 */
public interface UserService extends IService<User> {

    void create(UserCreateRequest request);

    void update(UserUpdateRequest request);

    UserResponse findById(Long id);

    UserResponse findByUserName(String userName);
}
